powered by
The pivot coordinate transformation and its inverse.
pivot(x) pivotinv(y)
A numerical matrix with the compositional data.
A numerical matrix with data to be closed into the simplex.
A matrix with the alr transformed data (if pivot is used) or with the compositional data (if the pivotinv is used).
The pivot coordinate transformation and its inverse are computed. This means that no zeros are allowed.
Peter Filzmoser, Karel Hron and Matthias Templ (2018). Applied Compositional Data Analysis With Worked Examples in R (pages 49 and 51). Springer.
alfa, alfainv, alr, green
# NOT RUN { library(MASS) x <- as.matrix(fgl[, 2:9]) x <- x / rowSums(x) y <- pivot(x) x1 <- alrinv(y) # }
Run the code above in your browser using DataLab